import request from '@/utils/request'

// 查询泵送选项配置列表
export function listPumping(query) {
  return request({
    url: '/service/config-center/pumping/list',
    method: 'get',
    params: query
  })
}

// 查询泵送选项配置详细
export function getPumping(id) {
  return request({
    url: '/service/config-center/pumping/' + id,
    method: 'get'
  })
}

// 新增泵送选项配置
export function addPumping(data) {
  return request({
    url: '/service/config-center/pumping',
    method: 'post',
    data: data
  })
}

// 修改泵送选项配置
export function updatePumping(data) {
  return request({
    url: '/service/config-center/pumping',
    method: 'put',
    data: data
  })
}

// 删除泵送选项配置
export function delPumping(id) {
  return request({
    url: '/service/config-center/pumping/' + id,
    method: 'delete'
  })
}
